package com.springboot.strategy.demo001.impl;
import com.springboot.strategy.demo001.IPriceStrategy;

/**
 * 老客户策略
 */
public class OldPriceStrategy implements IPriceStrategy {
    public double getPrice(double originalPrice) {
        System.out.println("老客户，打9折");
        return originalPrice * 0.9;
    }
}
